3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage transforms.
You can use the Q3Transform_GetType function to get the type of a transform object.
TQ3ObjectType Q3Transform_GetType (TQ3TransformObject transform);
The Q3Transform_GetType function returns, as its function result, the type of the transform object specified by the transform parameter. The types of transform objects currently supported by QuickDraw 3D are defined by these constants:
kQ3TransformTypeMatrix
kQ3TransformTypeQuaternion
kQ3TransformTypeRotate
kQ3TransformTypeRotateAboutAxis
kQ3TransformTypeRotateAboutPoint
kQ3TransformTypeScale
kQ3TransformTypeTranslate
If the specified transform object is invalid or is not one of these types, Q3Transform_GetType returns the value kQ3ObjectTypeInvalid .
You can use the Q3Transform_GetMatrix function to get the matrix representation of a transform.
TQ3Matrix4x4 *Q3Transform_GetMatrix (
TQ3TransformObject transform,
TQ3Matrix4x4 *matrix);
You can use the Q3Transform_Submit function to submit a transform.
TQ3Status Q3Transform_Submit (
TQ3TransformObject transform,
TQ3ViewObject view);
Previous | QD3D Book | Overview | Chapter Contents | Next |